// 实习宝藏审核端接口
let taskUrl = 'ido/app/task/'
let taskRecordUrl = 'ido/app/task/worker/'
let taskRecordListUrl = 'ido/app/task/worker/taskRecord/list'
let studentInfoUrl = 'ido/app/user/profile/'

function treasureCheckApi(vm){
	/* 实习宝藏接口 */
	// 获取某一任务信息
	let getTaskInCheck = (id) => vm.$u.get(taskUrl + id)
	// 获取任务记录列表
	let getTaskRecordListInCheck = () => vm.$u.get(taskRecordListUrl)
	// 修改任务记录
	let updateTaskRecordInCheck = (id, starNum) => vm.$u.post(taskRecordUrl + id + '?starNum=' + starNum)
	// 获取任务记录详情
	let getTaskRecordInCheck = (id) => vm.$u.get(taskRecordUrl + id)
	// 依照学生ID获取学生姓名和头像
	let getStudentInfoInCheck = (id) => vm.$u.get(studentInfoUrl + id)
	return {
		getTaskInCheck,getTaskRecordInCheck,updateTaskRecordInCheck,getTaskRecordListInCheck,getStudentInfoInCheck
	}
}
export default treasureCheckApi